/*
 * Copyright (c) 2007 IJO Technologies Ltd.
 * www.ijotechnologies.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * IJO Technologies ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with IJO Technologies.
 */
package com.nervenets.web.validation;

/**
 * @author Joe create 2009-1-2 13:20:16
 * @link {http://www.nervenets.com}
 * @copyright YunKing Union
 */
public enum Type {
    EMPTY(""),
    URL("link"),
    EMAIL("email"),
    NOTEMPTY("notEmpty"),
    MOBILE("mobile"),
    PHONENUMBER("phoneNumber"),
    DIGITAL("digital"),
    BIGDECIMAL("bigDecimal"),
    MONEY("money"),
    BIRTHDATE("birthdate"),
    FUTUREDATE("futuredate"),
    AFTERTODAY("aftertody"),
    DATE("date"),
    ZIPCODE("zipCode"),
    NUMBER("number"),
    FLOATNUMBER("floatNumber"),
    OPTIONALFLOATNUMBER("optionalFloatNumber"),
    POSITIVENUMBER("positiveNumber"),
    FAX("fax"),
    PASSWORD("password");

    public static final String DEFAULT_VALIDATOR_NAME = "defaultValidator";
    private String validatorName;
    private String property;


    Type(String property) {
        this.validatorName = DEFAULT_VALIDATOR_NAME;
        this.property = property;
    }

    public String getValidatorName() {
        return validatorName;
    }

    public String getProperty() {
        return property;
    }
}